Do the States have a right to ban same-sex marriage?

Do the States have a right to ban same-sex marriage?